import * as svg from '@element-plus/icons-vue';
import toolBtn from "@/components/common/toolBtn"
import searchBox from "@/components/common/searchBox"
import paginate from "@/components/common/paginate"
import tzsTable from "@/components/common/tzsTable"
import SvgIcon from "@/components/common/svgIcon"
import publicCommon from "@/components/common/publicCommon"
import formLabel from "@/components/common/formLabel"
import formTable from "@/components/common/formTable"
export function elSvg(app) {
    const icons = svg;
    for (const i in icons) {
        app.component(`ele-${icons[i].name}`, icons[i]);
    }
    app.component('SvgIcon', SvgIcon);
}
export function table(app){
    app.component ("toolBtn",toolBtn)
    app.component ("tzsTable",tzsTable)
    app.component ("searchBox",searchBox)
    app.component ("paginateCom",paginate)
    app.component ("publicList",publicCommon)
    app.component ("formLabel",formLabel)
    app.component ("formTable",formTable)
}

const other = {
    elSvg: (app) => {
        elSvg(app);
    },
    component: (app) => {
        table(app);
    },
}

export default other